package com.pacy.pacybaseproject.adapters;

import android.graphics.Color;
import android.util.TypedValue;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.fondesa.recyclerviewdivider.DividerBuilder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.BusStationBean;
import com.pacy.pacybaseproject.beans.MenuBean;

/**
 * @author PACY
 * @date 2024/1/3
 * description:
 */
public class HomeMenuAdapter extends BaseQuickAdapter<MenuBean, BaseViewHolder> {
    public HomeMenuAdapter() {
        super(R.layout.menu_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, MenuBean s) {
        holder.setText(R.id.title,s.getTitle())
                .setImageResource(R.id.icon,s.getIconPath());
    }
}
